package com.quectel.core.module.grid.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zhangheng
 * @email nolan.zhang@quectel.com
 * @date 2023/02/03 16:42
 */
@Data
@Schema
public class GridNoticeRelationDto implements Serializable {

    /**
     * ID
     */
    @Schema(description = "ID")
    private Long id;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
     * 网格通知公告id
     */
    @Schema(description = "网格通知公告id")
    private Long gridNoticeId;

    /**
     * 来源类型1街道2小区3网格
     */
    @Schema(description = "来源类型1省2市3区4街道5小区6网格")
    private Byte sourceType;

    /**
     * 来源:街道编码,小区id 网格id
     */
    @Schema(description = "来源:街道编码,小区id 网格id")
    private String sourceId;

    /**
     * 1已读0未读
     */
    @Schema(description = "1已读0未读")
    private Byte readStatus;

    /************非数据库字段 start ************/
    @Schema(description = "地区信息")
    private GridRegionInfoDto gridRegionInfo;

    @Schema(description = "下发消息地区信息")
    private GridRegionInfoDto parentGridRegionInfo;
    @Schema(description = "公告信息")
    private GridNoticeDto gridNotice;

    /************非数据库字段 end **************/
}
